/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 * 说明：
 * Entity Name 商店充值规则
 * @Author：李智深
 * @Date：2012-03-14
 */
@Entity
@Table(name="ruipeng_tb_TShopCharge")
public class TShopCharge implements Serializable{

	private static final long serialVersionUID = 1L;

	private String ChargeID;//充值编号CHAR(15) PK

	private double AMount;//金额DECIMAL(20,3)

	private double GiftAmount;//赠送金额

	private String Type;//赠送类型CHAR(18)1为充XXX送XXX 2为放大率为XXX，如果赠送类型为2，则赠送金额为放大率

	private String Operator;//操作人CHAR(15)

	private Date HappenTime;//操作时间DATETIME

	private boolean IsValid;//就否有效
	
	private Date StartTime; //开始时间
	
	private Date EndTime;//结束时间
	
	private String OperatorName;//操作人名称，不进数据库
	private String HappenTimeStr;//操作时间，不进数据库
	private String StartTimeStr;//操作时间，不进数据库
	private String EndTimeStr;//操作时间，不进数据库
	private boolean isSelect;//是否选中 不进数据库
	
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "StartTime", nullable = false, length = 19)
	public Date getStartTime() {
		return StartTime;
	}

	public void setStartTime(Date startTime) {
		StartTime = startTime;
	}
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "EndTime", nullable = false, length = 19)
	public Date getEndTime() {
		return EndTime;
	}

	public void setEndTime(Date endTime) {
		EndTime = endTime;
	}

	@Id
	@Column(name = "ChargeID", length=15)
	public String getChargeID() {
		return ChargeID;
	}

	public void setChargeID(String chargeID) {
		ChargeID = chargeID;
	}


	@Column(name = "AMount", precision = 20, scale = 3)
	public double getAMount() {
		return AMount;
	}
	
	public void setAMount(double aMount) {
		AMount = aMount;
	}

	@Column(name = "GiftAmount", precision = 20, scale = 3)
	public double getGiftAmount() {
		return GiftAmount;
	}

	public void setGiftAmount(double giftAmount) {
		GiftAmount = giftAmount;
	}

	@Column(name = "Type", length=18)
	public String getType() {
		return Type;
	}

	public void setType(String type) {
		Type = type;
	}

	@Column(name = "Operator", length=15)
	public String getOperator() {
		return Operator;
	}

	public void setOperator(String operator) {
		Operator = operator;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "HappenTime", nullable = false, length = 19)
	public Date getHappenTime() {
		return HappenTime;
	}

	public void setHappenTime(Date happenTime) {
		HappenTime = happenTime;
	}

	@Column(name = "IsValid")
	public boolean isIsValid() {
		return IsValid;
	}

	public void setIsValid(boolean isValid) {
		IsValid = isValid;
	}

	@Transient
	public boolean isSelect() {
		return isSelect;
	}
	public void setSelect(boolean isSelect) {
		this.isSelect = isSelect;
	}
	@Transient
	public String getOperatorName() {
		return OperatorName;
	}
	public void setOperatorName(String operator) {
		OperatorName = operator;
	}
	@Transient
	public String getHappenTimeStr() {
		return HappenTimeStr;
	}
	public void setHappenTimeStr(String happenTimeStr) {
		HappenTimeStr = happenTimeStr;
	}
	@Transient
	public String getStartTimeStr() {
		return StartTimeStr;
	}

	public void setStartTimeStr(String startTimeStr) {
		StartTimeStr = startTimeStr;
	}
	@Transient
	public String getEndTimeStr() {
		return EndTimeStr;
	}
	public void setEndTimeStr(String endTimeStr) {
		EndTimeStr = endTimeStr;
	}
	
}
